﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ServiceImplementation.Translator
{
    /// <summary>
    /// Define StatusDTO Translator
    /// </summary>
    class StatusDTOTranslator
    {
        /// <summary>
        /// To Translate StatusDTO to StatusBusinessEntity
        /// </summary>
        /// <param name="statusDTO"></param>
        /// <returns></returns>
        public static BLL.Status TranslateDTOToBusiness(DataContracts.StatusDTO statusDTO)
        {
            BLL.Status statusBE = new BLL.Status();
            statusBE.StatusId = statusDTO.StatusId;
            statusBE.StatusName = statusDTO.StatusName;
            return statusBE;
        }
        /// <summary>
        /// To Translate StatusBusinessEntity to StatusDTO
        /// </summary>
        /// <param name="statusBE"></param>
        /// <returns></returns>
        public static DataContracts.StatusDTO TranslateBusinessToDTO(BLL.Status statusBE)
        {
            DataContracts.StatusDTO statusDTO = new DataContracts.StatusDTO();
            statusDTO.StatusId = statusBE.StatusId;
            statusDTO.StatusName = statusBE.StatusName;
            return statusDTO;
        }
    }
}
